home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / utility / read707.zip / READY.DOC < prev    next >
Text File  |  1997-07-31  |  31KB  |  638 lines

  1. READY.DOC                              1                           Jul 31, 1997
  2.  
  3. WIN95 AND WINNT NOTICE:  As with most DOS-based utilities, this program doesn't
  4. understand the weird subdirectories, long filenames,  invalid  characters  that
  5. are possible under Windows 95 and Windows/NT.   Both  operating  systems  alias
  6. long filenames into names like MYFILE~1.TXT and you will need  to  specify  the
  7. aliased versions of file names to process  them.   Under  some  file  structure
  8. systems in NT, the program may not work at all.
  9.  
  10. The READY.EXE program is a text file viewer and offers most of the functions of
  11. the similar READ.EXE program.  It is, however, a stripped-down version of  READ
  12. and it processes files in a totally different way  so  it  has  some  different
  13. features.
  14.  
  15.  
  16. Features of the READY program:
  17.   * Handles files of an unlimited number of lines.
  18.   * Handles DOS text files (lines end with CR/LF), Mac text  files  (lines  end
  19.     with CR), or Unix text files (lines end with LF).
  20.   * Allows text to be blocked and copied or printed.
  21.   * Allows a user-specified string after partial or full text is printed.
  22.   * Supports 43/50-line mode under EGA and VGA.
  23.   * Allows jumping to DOS as well as allowing you  to  turn  off  this  feature
  24.     (useful for public-use terminals).
  25.   * Allows case-insensitive text searching within the file.
  26.   * Shows a ruler line if desired.
  27.   * Shows the file before it has finished loading  so  you  can  start  reading
  28.     sooner.
  29.   * Provides the ability to show line numbers on the screen.
  30.   * Expands tabs for display.
  31.   * Makes a quick determination of the maximum  line  length  and  sets  it  to
  32.     either 80, 132, or 255 for processing purposes.  This  doesn't  affect  the
  33.     actual input file, just the temporary file that the program runs off of.
  34.   * Allows lines over the maximum line length to be either truncated,  wrapped,
  35.     or split.  The continuation lines (if any) can be  preceded  with  a  user-
  36.     specified string or x-number of spaces.
  37.   * Allows specified words to be highlighted throughout the text so they can be
  38.     identified more  easily.   (This  is  different  from  the  typical  "Find"
  39.     feature.)
  40.   * Can Ctrl-PgUp/Ctrl-PgDn among up to 100 files.
  41.   * Allows the user to adjust terminal colors.
  42.   * To a limited extent and with a fair amount of manual effort, can be used to
  43.     write out word processing files as ASCII text.
  44.   * The date format shown is based on your country setting.
  45.   * Can reroute the output to a disk file or  printer  and  get  the  automatic
  46.     wrapping and such if desired.
  47.   * Pressing escape stops the program early.
  48.  
  49.  
  50. READY.DOC                              2                           Jul 31, 1997
  51.  
  52. READY's advantages over READ:
  53.   * It can handle files of unlimited line counts.
  54.   * It can be very quick processing files the second time they are viewed.
  55.   * It requires less memory than READ requires.
  56.   * It provides the ability to show line numbers on the screen.
  57.   * Expands tabs for display (READ displays them as little circles).
  58.   * Wraps or splits up long lines for display.
  59.   * Allows word highlighting throughout a document.
  60.   * Allows the user to specify a range of lines to read.
  61.   * Allows you to filter out characters as well as providing your own character
  62.     translation table.
  63.  
  64.  
  65. READY's disadvantages over READ:
  66.   * It handles files by rewriting them out to (by default) your C drive.  So  a
  67.     large file will take up considerable disk space.
  68.   * Any lines that are wider than the determined maximum line length (80,  132,
  69.     or 255) are truncated, wrapped, or split up instead of being able  to  view
  70.     their entire length.
  71.   * It does not support some  of  the  special  functions  that  READ  handles.
  72.     Specifically, forget all of the following (although they could be added  if
  73.     people really demanded them):
  74.        Ctrl-P  Printer formfeed
  75.        /       Case-sensitive search (only non-sensitive searches work)
  76.        #line   Skip to a specified line number
  77.        -line   Move backward x-number of lines
  78.        +line   Move forward x-number of lines
  79.   * It does not provide any mouse support.
  80.   * It does not provide any printer setup options  (although  it  does  provide
  81.     wide and regular printer settings).
  82.  
  83. However, in many cases, this is a very useful command.
  84.  
  85.  
  86.  
  87. READY.DOC                              3                           Jul 31, 1997
  88.  
  89. Temporary file:
  90.  
  91. The program writes out a random-access file as (by default) C:\READY.TMP.  This
  92. file contains one 80-character record for every line in your original file. (If
  93. your line length is specified as 132 or 255 characters, then each  record  will
  94. be that length instead.) In general, this file will be much  larger  than  your
  95. original file.  When the program finishes, by default it deletes the  temporary
  96. file.
  97.  
  98. The process of reading and writing the file can take  awhile  for  large  files
  99. although it's fairly quick for small files.
  100.  
  101. You can retain the temporary file if you'd like and the file can be written  to
  102. a networked drive if desired.  This makes secondary reads quicker.
  103.  
  104. If the temporary file is retained, the program is smart enough to  compare  the
  105. file date and time of the original file with the file stored in  the  temporary
  106. file.  If the original file has been updated or  is  different  from  the  file
  107. stored in the temporary file, the  program  will  reprocess  the  source  file.
  108. Otherwise, it will just read the temporary file.
  109.  
  110. For example, if you run the program with this command:
  111.  
  112.         READY J:\EBBNEW\DATA\BULL12.TXT /TJ:\EBBNEW\BULL12.TMP /KEEP
  113.  
  114. the first  time  the  program  is  run,  it  will  create  the  temporary  file
  115. (BULL12.TMP) based on BULL12.TXT and then will keep the  temporary  file.   The
  116. next time you (or someone) issues the same command, it  will  notice  that  the
  117. BULL12.TXT file hasn't been updated  so  it  will  immediately  work  with  the
  118. temporary file.  If the source file (BULL12.TXT) gets updated, the program will
  119. notice it's been updated and reprocess the file.
  120.  
  121.  
  122. Binary files:
  123.  
  124. READY provides some features that allow you to read binary files.  Binary files
  125. include the standard EXE and COM files but it also  includes  files  which  are
  126. stored in a native word processing format, like a WordPerfect or Microsoft Word
  127. file.  Once the file is read, you can write it out again  using  READY  and  it
  128. will be a *very* roughly formatted version of the original file.
  129.  
  130. Parameters which are primarily of use when viewing binary files:
  131.  
  132.           /BINARY    sets binary processing on
  133.           /FILTER    replaces non-printable codes with spaces
  134.           /INDENT=-n indents just the first line of block (vs  /INDENT=n  which
  135.                      indents just the continued lines)
  136.           /EOL=str   tells program what the end-of-line character is
  137.  
  138. Keep in mind that most native format files start with all sorts of binary codes
  139. to indicate things  like  fonts  and  margins.   Within  the  document,  you'll
  140. typically see all sorts of binary codes for margin changes  as  well  as  weird
  141. characters which indicate "soft hyphens" and "hard page breaks" and such.
  142.  
  143.  
  144. READY.DOC                              4                           Jul 31, 1997
  145.  
  146. Needless to say, none of this stuff shows  up  very  well  unless  you  have  a
  147. program that can specifically read and convert those  files.   They  definitely
  148. don't work very well under normal text viewers.
  149.  
  150. READY provides the ability  to  read  a  binary  file  in  as  blocks  of  6000
  151. characters instead of as individual lines.  It will then process the blocks  as
  152. virtual lines, wrapping them at word boundaries.
  153.  
  154. Let's do an example.  You've got a Microsoft Word for Windows 6.0  file  called
  155. RAID.MSW and have no way at all to handle it.  It's about 400,000 bytes long.
  156.  
  157. If you run into a binary file without preparing READY for it, READY  will  give
  158. you are error about "(Warning...  Is this really  a  text  file?   Program  may
  159. abort...)" and then probably blow up if the file is any more than about  30,000
  160. bytes.
  161.  
  162. So try READY with "READY RAID.MSW /BINARY".  The program should bring it up  on
  163. the screen.  Scroll to the right and left since /BINARY automatically puts  you
  164. into 255-character mode.
  165.  
  166. You'll see a lot of junk in the front of the file and then some actual lines of
  167. text.  The program default is  to  wrap  long  lines  (/WRAP).   It  also  adds
  168. indenting before the continuation lines which is kind of confusing (the default
  169. is /INDENT=3 when /WRAP takes effect).  Ideally, the  program  would  wrap  the
  170. lines not based just on the words but on the actual paragraph break characters.
  171. Notice that the Microsoft Word seems to use little musical note symbols at  the
  172. ends of paragraphs.  This should be your  end-of-line  indicator.   What's  the
  173. code?  Use "READY /?&H" and look for it.   It's  a  decimal  13  which  can  be
  174. entered into READY as "\013".
  175.  
  176. Since you know what code Word uses for ends of paragraphs, you  don't  need  to
  177. see the binary codes any more.  Pass in the "/FILTER" parameter to replace them
  178. with spaces.
  179.  
  180. You also want to see the whole text on the screen so  force  the  program  into
  181. 80-column mode by specifying "/WIDTH=80".
  182.  
  183. You want to switch the program so it  indents  the  first  line  of  each  line
  184. (paragraph) instead of the continuation lines.  This is done  with  a  negative
  185. indent parameter.  Pass in "/INDENT=-3" for this.
  186.  
  187. Now, try  READY  with  "READY  RAID.MSW  /BINARY  /EOL=\013  /FILTER  /WIDTH=80
  188. /INDENT=-3".
  189.  
  190. This changes things considerably.  There will probably be a different number of
  191. lines now because the program replaced the binary characters  with  spaces  and
  192. can now wrap in different places.  Move around the file and  try  to  find  the
  193. actual block that contains real text.  Write  it  out  using  the  line-marking
  194. features (documented later) combined with  file  copying  (Alt-D)  or  printing
  195. (Alt-P).
  196.  
  197. One thing to watch out for is that the program may split up words that fall  on
  198. the 6000-byte boundaries.  As long  as  you've  allowed  indentation,  you  can
  199. quickly scan through the file and watch out for these.
  200.  
  201. Things like hyphenation, tables, and sometimes  quotation  marks  will  all  be
  202. stripped by this process.  Still, it might be handy.
  203.  
  204. READY.DOC                              5                           Jul 31, 1997
  205.  
  206. Defining Character-Translations (The Filter Table):
  207.  
  208. READY allows you to translate specified characters as the text is  read.   This
  209. is especially useful when you're reading something like a Microsoft  Word  file
  210. and you know that some weird character is *really* supposed to  be  some  other
  211. character.
  212.  
  213. There is a default character-translation table built into the program which you
  214. can request  by  passing  in  the  parameter  "/FILTER".   In  this  case,  all
  215. characters between decimal 32 and 126 as well as decimal 9 (the tab) keep their
  216. original values and everything else get translated as a space.  This leaves you
  217. with the following characters:
  218.  
  219.         (tab) (space)                   !"#$%&'()*+,-./
  220.         0123456789                      :;<=>?@
  221.         ABCDEFGHIJKLMNOPQRSTUVWXYZ      [\]^_`
  222.         abcdefghijklmnopqrstuvwxyz      {|}~
  223.  
  224. Alternatively, you can create your own filter file and invoke it by  specifying
  225. the "/FILTER=filename" parameter.  The filters can be in  your  standard  *.INI
  226. file (for example, READ.INI) if desired.  If it  becomes  large,  however,  you
  227. might want to move it to its own  filename.   A  sample  READFILT.INI  file  is
  228. provided.  You can modify this file or create your own.
  229.  
  230. The filter table is an ASCII text file which consists of a series of  lines  in
  231. the following format:
  232.  
  233.         inchar = outchar
  234.  
  235. where "inchar" is the character to change from and "outstr" is what  to  change
  236. the character to.  Both portions can consist of regular  non-space  ASCII  text
  237. characters (like "A" or "z") as well as hexadecimal values (in the  form  &Hxx)
  238. or decimal values (in the form  \nnn).   Both  sides  can  reference  a  single
  239. character  (exactly  one  character  is  always  translated  into  exactly  one
  240. character).  You cannot use a  space  or  equal  sign  in  either  "inchar"  or
  241. "outchar"; use the hexadecimal or decimal representations instead.   The  table
  242. does not have to be in any specified order.  Lines can end with  "/*"  followed
  243. by a comment if you want.
  244.  
  245. Hexadecimal and decimal equivalents are explained in BRUCEHEX.DOC.
  246.  
  247. Examples:
  248.  
  249.         a    = A   /* Translate lowercase "a" into capital "A"
  250.         \032 = _   /* Translate space (decimal 032, &H20 too) into underscore
  251.         \027 = \032    /* Translate escape character to a space
  252.  
  253. Some leading characters  in  INI  files  are  treated  specially  within  Wayne
  254. Software programs.  INI lines that begin with any of the  following  characters
  255. may lead to odd results:  "[", "/", "&", "\", ";", ":", "<", and ",".  To avoid
  256. problems, use hexadecimal or decimal representations for these characters.  For
  257. example, use \047 or &H2F if you want to override the definition of "/".
  258.  
  259.  
  260. READY.DOC                              6                           Jul 31, 1997
  261.  
  262. Specifying parameters:
  263.  
  264. Parameters for this program can be set in the following ways.  The last setting
  265. encountered always wins:
  266.   - Read from an *.INI file (see BRUCEINI.DOC file),
  267.   - Through the use of an environmental variable (SET READ=whatever), or
  268.   - From the command line (see "Syntax" below)
  269.  
  270. Note that the READY program allows you to provide the same parameters  accepted
  271. by the READ program.  READY just ignores any parameters that  it  does  not  in
  272. fact support.  It even reads the READ.INI file by default.
  273.  
  274.  
  275. Syntax:
  276.  
  277.     READY [ filespec | /Tfilename ] [ /KEEP | /-KEEP ] [ /WIDTH=n ]
  278.       [ /TRUNCATE | /SPLIT | /WRAP ] [ /INDENT=n | /INDENT=-n | /INDENT=str ]
  279.       [ /H word [ word ]... ] [ /n | /n1-n2 | /n1+n2 | -n ] [ /LOAD ]
  280.       [ /FILTER | /FILTER=filename ] [ /BINARY | /EOL=str | /TEXT ]
  281.       [ /DATE | /-DATE ] [ /TIME | /-TIME ] [ /-DOS ] [ /PORT=port ]
  282.       [ /AFTERP=string ] [ /AFTERF=string ] [ /EGA | /VGA ]
  283.       [ /COLOR=nnn nnn nnn nnn nnn | /MONO ]
  284.       [ /Iinitfile | /-I ] [ /-ENV ] [ /? ] [ /?&H ] [ >filename ]
  285.  
  286. where:
  287.  
  288. "filespec" is the input file specification to be viewed.  Can include wildcards
  289. and full path information if desired.  Note that either an input filespec or  a
  290. temporary file has to be provided; if neither is provided, you'll  be  prompted
  291. for the file name to view.  You can specify both if you'd like.
  292.  
  293. "/Tfilename" specifies the name of the temporary file.  The file  will  contain
  294. one 80-character record for each line in the source file plus one line which is
  295. used to identify the input file.  (If the line length is 132 or 255 characters,
  296. the records will be that long instead.) The temporary file is stored by default
  297. as C:\READY.TMP so "/TC:\READY.TMP" is the default value  for  this  parameter.
  298. Wildcards are not allowed for the temporary file name.
  299.  
  300. "/KEEP" says to keep the temporary file around after you leave the command.  By
  301. default, the temporary  file  is  saved  if  a  temporary  file  is  explicitly
  302. provided.
  303.  
  304. "/-KEEP" says to delete the temporary file no matter what.
  305.  
  306. "/WIDTH=n" specifies that the input file is presumed to have lines of length  n
  307. or less.  Lines longer than n characters will be either truncated, wrapped,  or
  308. split (see settings below).  READY will try to guess the line  length  for  you
  309. although it's quicker and more reliable if  you  enter  it  yourself.    Normal
  310. values are /WIDTH=80, /WIDTH=132, and /WIDTH=255.  You cannot exceed a width of
  311. 255.
  312.  
  313.  
  314. READY.DOC                              7                           Jul 31, 1997
  315.  
  316. "/TRUNCATE" says to truncate any line  over  the  specified  line  length  (for
  317. example, any text after the 80th, 132nd, or 255th character are  deleted).   If
  318. you print or copy the file from within READY, READY will write out the lines as
  319. truncated, not in their original format.
  320.  
  321. "/SPLIT" says, for display purposes, to split any line over the specified  line
  322. length  (for  example,  any  line  over  80,  132,  or  255  characters).   The
  323. continuation lines are indicated by the /INDENT parameter.  Line  counts  shown
  324. will be the number of wrapped lines, not the original number of lines.  See the
  325. "/TRUNCATE" parameter above for additional caveats.
  326.  
  327. "/WRAP" says, for display purposes, to split any lines over the specified  line
  328. length (for example, any  line  over  80,  132,  or  255  characters)  on  word
  329. boundaries.  READY will look for the last full word before the specified length
  330. and wrap the line at that point.  The continuation lines are trimmed of leading
  331. spaces and are then indicated by the /INDENT parameter.  "/WRAP"  is  initially
  332. the default for this routine.  See  the  "/TRUNCATE"  and  "/SPLIT"  parameters
  333. above for additional caveats.
  334.  
  335. "/INDENT=n" specifies that n-spaces are to  be  added  to  the  start  of  each
  336. continued line.  Defaults to "/INDENT=3".  If you don't want any indentation at
  337. all, specify "/INDENT=0" or "/-INDENT".
  338.  
  339. "/INDENT=-n" specifies that n-spaces are to be added to the start of the  first
  340. (non-continued) line and nothing is to be added before the continued line. This
  341. is primarily of use when "/BINARY" is specified.
  342.  
  343. "/INDENT=str" specifies that each continued line is  to  be  started  with  the
  344. specified string.  The string cannot contain spaces (use /INDENT=n if you  just
  345. want spaces); however, you can embed decimal and hexadecimal strings (including
  346. space representations) if desired (see BRUCEHEX.DOC file).
  347.  
  348. "/H word..." highlights up to 10 words throughout the  text.   Highlighting  is
  349. done on a word-by-word basis; not by phrase.  So the words to highlight do  not
  350. have to appear together in the text to be found.   You  can  also  ask  for  or
  351. change the words to be highlighted by using "H" within the program.
  352.  
  353. "/n" says to process lines beginning with line n.  For example, "/1000" says to
  354. read the file beginning with line 1000.
  355.  
  356. "/n1-n2" says to process lines n1 through n2.   For  example,  "/500-700"  will
  357. process lines 500 to 700.
  358.  
  359. "/n1+n2" says to process  n2  lines  beginning  with  line  n1.   For  example,
  360. "/500+500" will process lines 500 to 999.
  361.  
  362. "/-n" (or "/+n") says to stop after processing the first n lines.  For example,
  363. "/+100" says to process only the first 100 lines of the file.
  364.  
  365.  
  366. READY.DOC                              8                           Jul 31, 1997
  367.  
  368. "/LOAD" pre-loads the file into a temporary file (required) and then aborts  to
  369. DOS.  This is so you can create the temporary files for something like  network
  370. access as part of a batch program so users won't have to spend  time  reloading
  371. the file themselves.  This option automatically invokes the "/KEEP" option.
  372.  
  373. "/FILTER"  specifies  that  the  program  is  to  replace   with   spaces   all
  374. non-printable characters from the input file(s).  This  is  primarily  used  in
  375. conjunction with the "/BINARY" parameter.  See the "Binary files" and "Defining
  376. Character-Translations" discussions above.  Initially defaults to "/-FILTER".
  377.  
  378. "/-FILTER" says to not bother removing the  nonprintable  characters  from  the
  379. output.  This is initially the default.
  380.  
  381. "/FILTER=filename" specifies that a filter is to be applied and  all  character
  382. replacements are in the file "filename".  See "Defining Character-Translations"
  383. discussion above.
  384.  
  385. "/BINARY" says the input file is a binary file, like an EXE or  a  native  word
  386. processing document.  This can be used as a way of  seeing  what  the  document
  387. looks like and allowing you to rewrite  it  as  a  text  file  with  reasonable
  388. margins.  See "Binary files" discussion above.
  389.  
  390. "/EOL=str" allows you to specify the end-of-line characters in your file.   You
  391. can embed decimal and hexadecimal strings (including space representations)  if
  392. desired (see  BRUCEHEX.DOC  file).   This  option  is  primarily  of  use  when
  393. processing binary files because, for standard text files, READY will  correctly
  394. determine the end-of-line characters (CR, LF, or CR/LF) for you.   See  "Binary
  395. files" discussion above.
  396.  
  397. "/TEXT" confines any search to text files only.  The program examines the first
  398. thousand bytes of the file and  skips  any  file  that  contains  binary  bytes
  399. instead of exclusively text ones.
  400.  
  401. "/DATE" displays the file date and  time  on  the  status  line;  this  is  the
  402. default.
  403.  
  404. "/-DATE" skips displaying the file date and time on the status  line.   If  you
  405. want to display the file time but not the date, specify /-DATE before /TIME.
  406.  
  407. "/TIME" displays the file time  on  the  status  line;  this  is  the  default.
  408. Specifying "/-DATE" will turn off the time display by default.
  409.  
  410. "/-TIME" skips displaying the file time on the status line.  Specifying  "/DATE
  411. will turn on the time display by default.
  412.  
  413. "/DOS" allows the user to say Alt-J to jump to  DOS.   This  is  initially  the
  414. default.
  415.  
  416. "/-DOS" prohibits jumping to DOS.  Initially defaults to "/DOS".
  417.  
  418.  
  419. READY.DOC                              9                           Jul 31, 1997
  420.  
  421. "/PORT=port" specifies the printer port to use for  printing.   This  typically
  422. defaults to /PORT=LPT1:.
  423.  
  424. "/AFTERP=string" specifies the string to print  after  a  partial  document  is
  425. printed.  This string can include  a  page  eject  character  ("\012")  or  any
  426. printer reset codes ("\012\027E") you want.  (See BRUCEHEX.DOC file.) Initially
  427. defaults to "/AFTERP=\012".
  428.  
  429. "/AFTERF=string" specifies the  string  to  print  after  a  full  document  is
  430. printed. See "/AFTERP=string" description.  Defaults to "/AFTERF=\012".
  431.  
  432. "/EGA" or "/VGA" will put you in 43/50-line mode if your monitor supports this.
  433. The two options are actually synonymous  (you'll  get  the  best  your  monitor
  434. supports).  You can also switch to and from 25-line and 43/50-line mode  within
  435. the program by using Alt-E.
  436.  
  437. "/COLOR=nnn nnn nnn nnn nnn" specifies the color settings to use for (in order)
  438. (1) regular text, (2) the status line, (3) marked text, (4) found text, and (5)
  439. highlighted words.  Each setting must consist of three digits,  the  first  two
  440. being the foreground color and  the  last  being  the  background  color.   The
  441. foreground color should be padded on the left with a 0 if it is only one  digit
  442. in length.  Defaults to "/COLOR=150 151 157 143 127".  You can  stop  providing
  443. numbers at any point after the first if you're willing to  accept  the  default
  444. colors.
  445.  
  446. Foreground colors:
  447.  
  448.         Low intensity           High intensity
  449.  
  450.         0 = black                8 = dark grey
  451.         1 = blue                 9 = light blue
  452.         2 = green               10 = light green
  453.         3 = cyan                11 = light cyan
  454.         4 = red                 12 = light red
  455.         5 = magenta             13 = light magenta
  456.         6 = brown (or yellow)   14 = light yellow
  457.         7 = white               15 = bright white
  458.  
  459. Adding 16 to any color will make the text blink.  Background colors can consist
  460. of 0 to 7 above.  Bright white on blue, for example, would be "151".
  461.  
  462. "/MONO" (or "/-COLOR") forces the system into monochrome mode.
  463.  
  464. "/COLOR" (or "/-MONO") forces the system into color mode.   This  is  typically
  465. the default.
  466.  
  467.  
  468. READY.DOC                              10                          Jul 31, 1997
  469.  
  470. "/Iinitfile" says to read an initialization file with the file name "initfile".
  471. The file specification *must* contain a period.  Initfiles are described in the
  472. BRUCEINI.DOC file.  Initially defaults to "/IREAD.INI".
  473.  
  474. "/-I" (or "/INULL") says to skip loading the initialization file.
  475.  
  476. "/ENV" says to look for %var% occurrences  in  the  command  line  and  try  to
  477. resolve any apparent environmental variable references.  See  BRUCEINI.DOC  for
  478. more information.  This is initially the default.
  479.  
  480. "/-ENV" says to skip resolving apparent %var% occurrences in the command  line.
  481. Initially defaults to "/ENV".
  482.  
  483. "/?" or "/HELP" shows you the syntax for the command.
  484.  
  485. "/?&H" gives you a hexadecimal and decimal conversion table.
  486.  
  487. ">filename" redirects the output to a disk file.   This  automatically  invokes
  488. the /LOAD option, removes a lot of messages, does all that  wrapping  and  such
  489. for you, and displays the results to the screen as a long listing of text. This
  490. is then rerouted to the text file so  you  have  all  of  the  effects  without
  491. suffering through an interactive routine.  For example:
  492.  
  493.         READY myfile /WIDTH=75 /WRAP /INDENT=0 > WRAPPED.X
  494.  
  495. This will process the file "myfile", wrapping long lines  based  on  /WIDTH=75,
  496. not indent the  continuation  lines,  and  save  everything  in  a  file  named
  497. WRAPPED.X.
  498.  
  499.  
  500.  
  501. READY.DOC                              11                          Jul 31, 1997
  502.  
  503. Viewing options:
  504.  
  505. While you're viewing a document  with  the  READY  command,  you  can  use  the
  506. following keys.  These are a subset of the commands available  in  the  regular
  507. READ command:
  508.  
  509. Cursor movement keys (up/down):
  510.  
  511.      Up                moves up one line
  512.      Down              moves down one line
  513.      Home              moves to the top line of the document
  514.      End               moves to the bottom line of the document
  515.      PgUp              moves up one screen's worth
  516.      PgDn              moves down one screen's worth
  517.  
  518. Cursor movement keys (right/left):
  519.  
  520.      Right             moves one column to the right
  521.      Left              moves one column to the left
  522.      Tab               moves 8 columns to the right
  523.      Shift-Tab         moves 8 columns to the left
  524.      Ctrl-Right        moves to the far right of the document
  525.      Ctrl-Left         moves to the far left of the document
  526.  
  527. Search for text:
  528.  
  529.      \ or F or f or /  search for text within the document
  530.                        (the search is case-insensitive; "/COMMERCE" will find
  531.                        "Commerce", "commerce", and "COMMERCE")
  532.      F3                search for the next occurrence of that text
  533.      F9                search for the previous occurrence of that text
  534.      H or h            highlights up to 10 words throughout your text;
  535.                        highlighting is done on a word-by-word basis, not by
  536.                        phrase, so the words do not have appear near each other
  537.                        to be highlighted (the search for text option, above, on
  538.                        the other hand, looks for phrases, not words)
  539.  
  540. Marking lines:
  541.  
  542.      Alt-M             mark top line for copy or print
  543.      Alt-B             mark bottom line for copy or print
  544.      Alt-U             unmark all lines
  545.  
  546. Copying and printing lines (if lines are marked, the program copies/prints  the
  547. marked lines; if no lines are marked,  the  program  copies/prints  the  entire
  548. file):
  549.  
  550.      Alt-C or Alt-D    copy (duplicate) lines to a file
  551.      Alt-P             print lines
  552.  
  553. Next/previous documents:
  554.  
  555.      Ctrl-PgUp         go to the previous file viewed
  556.      Ctrl-PgDn         go to the next file specified on the input line
  557.  
  558.  
  559. READY.DOC                              12                          Jul 31, 1997
  560.  
  561. Miscellaneous:
  562.  
  563.      Alt-E             toggles between 25-line and 43-/50-line mode (if your
  564.                        system supports EGA and VGA respectively)
  565.      Alt-J or Alt-G    jumps (goes) to DOS; say EXIT to get back to program;
  566.                        this feature can be turned off using the /-DOS switch
  567.      Alt-R             shows ruler at the top of the listing
  568.      Alt-N             shows line numbers on the left side of the screen
  569.      F1                show key help screen
  570.      Esc               leave READY program
  571.  
  572.  
  573. Marking and copying/printing text:
  574.  
  575. If you need to copy/print a portion of your file, you will  typically  want  to
  576. mark sections of the text first.  This is done using the mark functions:  Alt-M
  577. marks the top line on the screen and Alt-B marks the bottom line on the screen.
  578.  
  579. For example, you might decide that you have a 2,000-line document and you  want
  580. to print 50 lines of it.  Go to the first line you want to print (you  can  use
  581. the search options if you want to).  Get that line at either  the  top  of  the
  582. screen or the bottom of the screen.  If it's the bottom line, press  Alt-B;  if
  583. it's the top line, press Alt-M.
  584.  
  585. Now go to the last line you want to print.  Again, get that line at either  the
  586. top of the screen or the  bottom  of  the  screen  and  press  Alt-B  or  Alt-M
  587. appropriately.  Having marked two lines, the program tags those lines  and  all
  588. those lines between them.
  589.  
  590. Now press Alt-P to print them.  All marked lines will be printed.
  591.  
  592. Copying works similarly.  Use Alt-C (or Alt-D) to copy the lines to a file.
  593.  
  594. Note that the program truncates or wraps any  lines  over  the  specified  line
  595. maximum (80, 132, or 255) and printing and copying with reflect this.
  596.  
  597.  
  598.  
  599. READY.DOC                              13                          Jul 31, 1997
  600.  
  601. Return codes:
  602.  
  603. READY returns the following ERRORLEVEL codes:
  604.  
  605.         0 = no problems
  606.         2 = /LOAD operation carried out
  607.       249 = the last file read was not a text file
  608.       250 = escape pressed
  609.       254 = input file(s) not found
  610.       255 = syntax problems, or /? requested
  611.  
  612.  
  613. Author:
  614.  
  615.                         Bruce Guthrie
  616.                         Room H-4885
  617.                         U.S. Dept of Commerce/ESA/STAT-USA
  618.                         Washington, DC 20230
  619.  
  620.                         voice: (202) 482-3234
  621.                         e-mail: bguthrie@doc.gov
  622.  
  623. You  may  freely  copy  and  re-distribute  this  program;  however,  the  U.S.
  624. Department of Commerce neither guarantees  nor  assures  compatibility  of  the
  625. program with all computer software or hardware.
  626.  
  627. Additional information about this and other Bruce Guthrie programs can be found
  628. in the file BRUCE.DOC which should be included in the original ZIP  file.   The
  629. recent change history for this and  the  other  programs  is  provided  in  the
  630. HISTORY.ymm file which should be in the same ZIP file where "y" is replaced  by
  631. the last digit of the year and "mm" is the two  digit  month  of  the  release;
  632. HISTORY.611 came out in November 1996.  This same naming convention is used  in
  633. naming the ZIP file (READymm.ZIP) that this program was included in.
  634.  
  635. Please provide an Internet e-mail address on all correspondence.
  636.  
  637. 
  638.